import { IFeidaoAiMobile } from '@dfeidao/atom-mobile/interfaces';
import get from '@dfeidao/atom-mobile/local/get';
import set from '@dfeidao/atom-mobile/local/set';
import nodejs from '@dfeidao/atom-mobile/msg/nodejs';
import render from '@dfeidao/atom-mobile/render/render';
export default async function a002(fd: IFeidaoAiMobile, e: Event, page_no: number) {
	if (!page_no) { return; }
	const teacher_no = get(fd, 'teacher_no');
	const productid = get(fd, 'productid');
	const data: [] = await get(fd, 'data');
	const res = await nodejs<Array<{}>>('app-teacher-class/s001', { teacher_no, productid, page_no });
	const data1 = [...data, ...res];
	set(fd, 'data', data1);
	render(fd, { res: data1, page_no, new_len: res.length });
}

